Skip to content

Instantly share code, notes, and snippets.

@adil192
adil192 / galaxy-wearable-patch.md
Last active December 25, 2025 19:06
Galaxy Wearable patch for Samsung phones with custom ROMs

Galaxy Wearable patch for Samsung phones with custom ROMs

See https://github.com/adil192/SamsungAppsPatcher for the updated version of this guide. This gist is now unmaintained, but may work on other operating systems.

Requirements

(Same as the above link.)

@ryanlua
ryanlua / fritzing-download.md
Last active December 25, 2025 19:04
Free download of Fritzing using the official download links
@STBoyden
STBoyden / effect-remote-functions.ts
Last active December 25, 2025 19:04
Effect.ts + SvelteKit remote functions
import type {
RemoteCommand,
RemoteForm,
RemoteFormInput,
RemoteQueryFunction
} from "@sveltejs/kit";
import { command, form, query } from "$app/server";
import { Effect, Schema } from "effect";
/**
@msimpson
msimpson / cfire
Created July 21, 2011 10:51
Curses based ASCII art fire animation.
#!/usr/bin/python
import curses, random
screen = curses.initscr()
width = screen.getmaxyx()[1]
height = screen.getmaxyx()[0]
size = width*height
char = [" ", ".", ":", "^", "*", "x", "s", "S", "#", "$"]
b = []
@dadhi
dadhi / data-get.md
Last active December 25, 2025 19:00
Datastar.js inspired, fast, small, no-build, no-magic, declarative web lib for the page interactivity based on signals and the html native data- attributes

I decided to pause here an settle/rethink on the syntax to ensure the stable basis for the moving forward:

  1. I misled you with the case. I mean kebab-case used in attributes will automatically be converted to camelCase, snake_case should not be converted when used in expression.
  2. Syntax. 2.1. Events now start with @ instead of on-. We are saving the 2 symbols. 2.2. Action syntax
  • Basis are data-get, -post, -put, -patch, -delete
  • Multiple input params (signals) start with : , eg. :post-id:foo.bar.baz The input param mods __uri to pass as uri (default for get, delete), __body (default for post, put, patch), __header.name to pass as header wuth the name. Special params are form! and file! with exclamation form.
  • Single output parameter starts with :+, eg :+posts. Mods are __merge (default), __replace, __append (for array), __prepend (for array).
  • Multiple action state info is starts with :?, eg :?fetching. Mods are __busy (default), __done, __ok, __err, __code, __all (all of the former).
@MongoWobbler
MongoWobbler / maya_qt_util.py
Last active December 25, 2025 18:55
Way of getting maya's main window and main menu as a QtWidget
import sys
from PySide2 import QtWidgets
from shiboken2 import wrapInstance
import maya.OpenMayaUI as omui
if sys.version_info > (3,):
long = int
# QObjects fall out of scope, so making them global here to keep them in scope
@luizomf
luizomf / README.md
Last active December 25, 2025 18:39
Useful Linux/Unix commands.

Se você usa MacOS

O macOs roda sobre Darwin OS (kernel XNU), que é um sistema UNIX-like. Então, todos os comandos abaixo também funcionam normalmente no MacOS. Recomendo utilizar o gerenciador de pacotes homebrew caso necessário instalar algo. Se quiser o mesmo terminal que eu (ZSH com Oh My ZSH), utilize este vídeo para configurar https://youtu.be/bs1-Wxb_KIc

Se você usa Windows

No Windows é possível utilizar o wsl2 e instalar uma versão do linux para acompanhar. Eu fiz alguns vídeos para você usar o Linux no Windows.

@1Marc
1Marc / reactive.js
Last active December 25, 2025 18:36
Vanilla Reactive System
// Credit Ryan Carniato https://frontendmasters.com/courses/reactivity-solidjs/
let context = [];
export function untrack(fn) {
const prevContext = context;
context = [];
const res = fn();
context = prevContext;
return res;
@Myrrel
Myrrel / SceneDelegate.swift
Last active December 25, 2025 18:34
Removing Storyboard From App [Xcode 14, Swift 5]
// 1. Delete the Main.storyboard file from the project. Click Move to Trash.
// 2. Remove Storyboard Name from File info.plist
// 3. Go to Application Target -> Build Settings -> Find the line: UIKit Main Storyboard File Base Name and remove the name of the storyboard.
// 4. In order to programmatically set the root controller of our application:
// Go to SceneDelegate file and in the func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) method add the following code:
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {